This example shows how to let this plugin to auto decide which coordinate to use.

As you saw in the previous example page, there are currently 2 coordinates supported by this plugin:

Besides you specify a fixed type of coordinates, you can pass "auto" to the flot's options under coordinate object like this:

            var options = {
                coordinate: {
                    type: "auto"
                }
            };
        

Then this plug in will show a "Rectangular" coordinate if the origin is inside the viewport, other wise it will show a "Default" coordinate. Check out this feature by panning or zooming on the above chart!